package com.jxc.dao.admin;

import java.util.List;
import java.util.Map;

import com.jxc.entity.admin.Stock;
import org.springframework.stereotype.Repository;

/**
 * 商品库存dao
 */
@Repository
public interface StockDao {
    int add(Stock stock);

    int edit(Stock stock);

    Stock findByProductId(Long id);

    List<Stock> findList(Map<String, Object> queryMap);

    Integer getTotal(Map<String, Object> queryMap);

    int delete(Long id);
}
